<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
  <title>数码家电</title>
  <link rel="stylesheet" href="https://mstatic.shandjj.com/default/TaoAction/css/common.css">
</head>
<body>
  <div id="app"></div>
  <script src="https://mstatic.shandjj.com/default/js/jquery.js"></script>
  <script src="https://mstatic.shandjj.com/default/js/jquery.lazyload.min.js"></script>
  <script src="https://mstatic.shandjj.com/default/js/app_wap.jquery.js"></script>
  <script src="https://mstatic.shandjj.com/default/js/activityCommon.js"></script>
  <script src="https://mstatic.shandjj.com/default/js/jquery.tj.js"></script>
  <script src="https://mstatic.shandjj.com/default/js/jweixin-1.3.2.js"></script>
  <script src="https://mstatic.shandjj.com/default/js/down.js"></script>
  <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  <script src="https://mstatic.shandjj.com/default/js/wechat_api.js"></script>
  <script>
    (function () {
      $.app.checkLogin();
      window.person = {
        token: "{$_GET['token']}" ? "{$_GET['token']}" : 1,
        uuid: "{$_GET['uuid']}" ? "{$_GET['uuid']}" : 1,
        user_id: "{$_GET['user_id']}" ? "{$_GET['user_id']}" : 1
      };
      wx.miniProgram.getEnv(function (res) {
        var user_id = "{$_GET['user_id']}";
        if (user_id) { isLogin(user_id);} 
        else { wx.miniProgram.redirectTo({ url: '/pages/login/login' })}
      })
    }());
    function isLogin(u) {
      if (u) {
        token = "{$_GET['token']}" ? "{$_GET['token']}" : 1;
        uuid = "{$_GET['uuid']}" ? "{$_GET['uuid']}" : 1;
        window.person = {token: token,uuid: uuid,user_id: u }
      } else { nologin()}
      $(function () {$.app.pageCode({ page: '00800000000', contentId: '10136'})})
    }
  </script>
</body>
</html>